import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test07 extends StatefulWidget {
  @override
  _Test07State createState() => _Test07State();
}

class _Test07State extends State<Test07> {
  bool check=false;
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Checkbox(
        value:check ,
        checkColor: Colors.red,
        activeColor: Colors.blue,
        onChanged: (value){
          setState(() {
            check=value;
          });
        },
      ),
    );
  }
}
